<!DOCTYPE html>
<html>

<head>

  <meta charset="UTF-8">
  <title>日期选择</title>
    <link rel="stylesheet" href="css/style.css" media="screen" type="text/css" />
</head>

<body>
  <div id='wrapper'>
  <form>
    <select class='custom-date' id="custom-date" name='select'>
      <option selected='selected' value='1'>当天</option>
      <option value='custom'>自定义</option>
    </select>
    <input type="button" value="确定" onclick="selectDate()"/>
  </form>
</div>
<div style="text-align:center;clear:both;margin-top:360px">
</div>
<script src='js/jquery.js'></script>
<script src="js/index.js"></script>
<script>
	$(".drp-timeline").css("display","none");
	function selectDate(){
		if($("#custom-date").val()!=1){
			$(window.parent.tdate).val( $("#custom-date option").eq(1).text() );
		}else{
			$(window.parent.tdate).val("当天");
		}
	}
</script>
</body>
</html>